<?php
class Pageley_Imaging_Brush_ColorTests extends Pageley_Test_Case {
    public function testFromColorId() {
        $fromHex = Pageley_Imaging_Brush_Color::fromHex("#FFC0A080");
        $fromColorId = Pageley_Imaging_Brush_Color::fromColorId(0x00C0A080);
        $this->assertEquals($fromHex, $fromColorId);
        
        $fromHex = Pageley_Imaging_Brush_Color::fromHex("#00C0A080");
        $fromColorId = Pageley_Imaging_Brush_Color::fromColorId(0x7FC0A080);
        $this->assertEquals($fromHex, $fromColorId);
    }
}